#!/usr/bin/python
# --coding:utf-8--


import re

# 匹配0-100之间的数字
text = '99'
res = re.match('[1-9]?\d$|100$', text)
print(res.group())


